package com.geoway.adf.report.service.impl;

import com.geoway.adf.report.dao.SheetDao;
import com.geoway.adf.report.po.SheetPO;
import com.geoway.adf.report.service.SheetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;

/**
 * @Author: lzw
 * @Date: 2024/1/18 14:36
 * @Description:
 */
@Service
public class SheetServiceImpl implements SheetService {
    @Autowired
    private SheetDao sheetDao;

    @Override
    public Optional<SheetPO> findById(String id) {
        return sheetDao.findById(id);
    }

    @Override
    public SheetPO save(SheetPO po) {
        return sheetDao.save(po);
    }
    @Override
    public List<SheetPO> findByExcelId(String id){
        return sheetDao.findByExcelId(id);
    }

    @Override
    public List<SheetPO> saveAll(List<SheetPO> list){
        return sheetDao.saveAll(list);
    }
}
